package top.hzy520.order.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.hzy520.order.dto.OrderDto;
import top.hzy520.order.entity.Order;
import top.hzy520.order.entity.PageQueryBean;

import java.util.List;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> selectOrderByUuId(Long uuid, int pageNumber, int pageSize);

    List<Order> selectOrderByUuId(@Param("uuid") Long uuid, @Param("pageQueryCodition")PageQueryBean pageQueryCodition);

    Integer coutByCondition(Long uuid);

    Order selectOrderByOrderNo(Long orderNo);
}